#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"
void test1()
{
	//SL s = NULL;
	SL* s = NULL;
	//s.num = NULL;
	//s.SLP = NULL;
	SLPushFront(&s, 1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLPushFront(&s, 6);
	SLPushBack(&s, 40);
	SLTPrint(&s);
}
void test2()
{
	//SL s = NULL;
	SL* s = NULL;
	//s.num = NULL;
	//s.SLP = NULL;
	SLPushFront(&s, 1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLPushFront(&s, 6);
	SLPushBack(&s, 40);
	SLPushBack(&s, 41);
	SLPushBack(&s, 30);
	SLPushBack(&s, 40);
	SLTPrint(&s);
}
void test3()
{
	//SL s = NULL;
	SL* s = NULL;
	//s.num = NULL;
	//s.SLP = NULL;
	SLPushFront(&s, 1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLPushFront(&s, 6);
	SLPushBack(&s, 40);
	SLPushBack(&s, 41);
	SLPushBack(&s, 30);
	SLPushBack(&s, 40);
	SLPushBack(&s, 48);

	SLPopBack(&s);
	//SLPopFront(&s);
	SLTPrint(&s);
}
void test4()
{
	//SL s = NULL;
	SL* s = NULL;
	SLPushBack(&s, 48);
	SLTPrint(&s);
	SLPopBack(&s);
	//SLPopFront(&s);
	SLTPrint(&s);
}
void test5()
{
	//SL s = NULL;
	SL* s = NULL;
	//s.num = NULL;
	//s.SLP = NULL;
	SLPushFront(&s, 1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLPushFront(&s, 6);
	SLPushBack(&s, 40);
	SLPushBack(&s, 41);
	SLPushBack(&s, 30);
	SLPushBack(&s, 40);
	SLPopFront(&s);

	SLTPrint(&s);
}
void test6()
{
	//SL s = NULL;
	SL* s = NULL;
	SLPushBack(&s, 48);
	SLTPrint(&s);
	SLPopFront(&s);
	//SLPopFront(&s);
	SLTPrint(&s);
}
int main()
{
	test6();
	test5();
	test4();
	test3();
	test2();
	test1();


	////SL s = NULL;
	//SL* s = NULL;
	////s.num = NULL;
	////s.SLP = NULL;
	//SLPushFront(&s, 1);
	//SLPushFront(&s, 2);
	//SLPushFront(&s, 3);
	//SLPushFront(&s, 4);
	//SLPushFront(&s, 5);
	//SLPushFront(&s, 6);
 //   SLPushBack(s,40);
	//SLTPrint(&s);

	return 0;
}